<%@ page import="com.neuedu.web.entity.Role" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: jshand
  Date: 2022-10-25
  Time: 10:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
</head>
<body>

使用动作

<%--<%--%>
<%--    Role role = new Role(1,"管理员",1,new Date()); //JavaBean--%>
<%--    request.setAttribute("role",role);--%>
<%--%>--%>


<%--定义了一个Bean对象--%>

<jsp:useBean id="role" class="com.neuedu.web.entity.Role" scope="request">
    <jsp:setProperty name="role" property="roleId" value="999"></jsp:setProperty>
    <jsp:setProperty name="role" property="roleName" value="超级管理员"></jsp:setProperty>
    <jsp:setProperty name="role" property="active" value="1"></jsp:setProperty>
</jsp:useBean>


$ {role} : ${role} <br>

$ {role.roleName} : ${role.roleName} <br>

< jsp:getProperty name="role" property="roleName"></ jsp:getProperty> : <jsp:getProperty name="role" property="roleName"></jsp:getProperty>

<%--incldue 动作  --%>
<jsp:include page="footer.jsp"></jsp:include>















</body>
</html>
